package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2022/09/19
*/
@Data
@TableName(value = "message")
public class Message implements Serializable {
    /**
     * 短消息
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 求职者id
     */
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(exist = false)
    private User user;

    /**
     * 企业管理者
     */
    @TableField(value = "company_id")
    private Integer companyId;
    @TableField(exist = false)
    private Company company;

    /**
     * 文本
     */
    @TableField(value = "text")
    private String text;

    /**
     * 图片
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 发生日期
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 状态
     */
    @TableField(value = "enable")
    private Boolean enable;

    /**
     * 发送方向，0为用户发给HR，1为HR发给用户
     */
    @TableField(value = "sending_direction")
    private Boolean sendingDirection;

    /**
     * 是否已读，0为未读，1为已读
     */
    @TableField(value = "read_or_not")
    private Boolean readOrNot;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_COMPANY_ID = "company_id";

    public static final String COL_TEXT = "text";

    public static final String COL_PICTURE = "picture";

    public static final String COL_TIME = "time";

    public static final String COL_ENABLE = "enable";

    public static final String COL_SENDING_DIRECTION = "sending_direction";

    public static final String COL_READ_OR_NOT = "read_or_not";
}